package com.itheima.test;

import com.itheima.domain.Goods;
import com.itheima.mapper.GoodsMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

@SpringBootTest
@Transactional
@RunWith(SpringJUnit4ClassRunner.class)
public class test {
    @Autowired
    private GoodsMapper goodsMapper;
    @Test
    public void findById(){
        Goods goods = goodsMapper.selectById(679532);
        System.out.println(goods);
    }
}
